<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>首页-二手市场</title>
		<link id="layuicss-laydatecss" rel="stylesheet" href="../js/css/modules/laydate/laydate.css" media="all">
		<link id="layuicss-skinlayercss" rel="stylesheet" href="../js/css/modules/layer/default/layer.css" media="all">
		<link id="layuicss-skincodecss" rel="stylesheet" href="../js/css/modules/code.css" media="all">
		<link rel="stylesheet" href="../js/css/layui.css">
		<link rel="stylesheet" href="../css/public.css">
		<link rel="stylesheet" href="../css/index.css">
	</head>
	<body>
		<div id="header">
			<div class="header-wrap">
				<ul class="nav fl">
					<li><a href="/goods/index">二手市场</a></li>
				</ul>
				<div class="nav-right fr">
					<c:if test="${!empty cur_user}"> <a href="/user/index" class="log-btn"> <img
								src="/images/user/${cur_user.imgUrl}" class="user-header-image">${cur_user.username}</a>
						<a href="/user/logout" class="log-btn">退出</a>
					</c:if>
					<c:if test="${empty cur_user}"> <a href="/user/toRegister" class="log-btn">注册</a> <a
							href="/user/toLogin" class="log-btn">登录</a> </c:if>
				</div>
			</div>
		</div>
		<div id="header-bottom">
			<div class="header-bottom-wrap clearfix">
				<div class="search-wrap fl">
					<div class="search"> <input type="text" class="keywords" placeholder="请输入关键词"> <a
							href="javascript:;" class="search-btn search-normal-btn">搜索</a> </div>
				</div>
				<div class="publish fr"> <a href="/publish/publish" class="publish-btn"><i class="icon"></i>发布 闲置</a>
				</div>
			</div>
		</div>
		<div id="main" class="clearfix">
			<div class="category fl" style="">
				<ul>
					<c:forEach var="item" items="${Catelog1}">
						<li> <a href="goods/catelog/${item.id}">
								<c:out value="${item.name}"></c:out><i class="icon"></i>
							</a> </li>
					</c:forEach>
				</ul>
			</div>
			<div class="main-box fl" style="margin-left: 0px;">
				<div class="index-list">
					<div class="list-header"> <a href="/goods/index" class="active">最新</a> <a href="/publish/publish"
							class="fr"><i class="icon"></i>发布信息</a> </div>
					<div class="list-body">
						<ul class="clearfix">
							<c:forEach var="item" items="${Goods1}">
								<li> <a href="detail/detail/${item.goods.id}" target="_blank" class="good-image"> <img
											class="image-show-box" src=/images/web/${item.images[0].imgUrl} /> <img
											class="image-real-box" src=/images/web/${item.images[0].imgUrl} /> </a> <a
										href="detail/detail/${item.goods.id}" target="_blank" class="good-title">
										<c:out value="${item.goods.name}"></c:out>
									</a> <span class="good-price">￥<c:out value="${item.goods.price}"></c:out></span>
									<span class="pub-time fr">更新时间 <c:out value="${item.goods.polishTime}"></c:out>
									</span>
								</li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</div>
			<div class="sidebar fr">
				<div class="sidebar-main-right"> <a class="sidebar-header">浏览量</a>
					<ul class="jizhuan-list">
						<c:forEach var="item" items="${Goods2}">
							<li> <a href="detail/detail/${item.goods.id}" class="jizhuan" target="_blank"> <img
										class="jizhuan-image" src=/images/web/${item.images[0].imgUrl} />
									<p class="jizhuan-title">
										<c:out value="${item.goods.name}"></c:out>
									</p>
									<p> <span class="yhq">￥<c:out value="${item.goods.price}"></c:out></span> <span
											class="jizhuan-price">￥<c:out value="${item.goods.realPrice}"></c:out>
										</span> </p>
								</a> </li>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
		<div id="footer">
			<div class="go-to-top" style="left: 1515px; display: none;"> <a href="#" title="回顶部" class="icon"></a>
			</div>
			<div class="footer-bottom-wrap">
				<div class="footer-bottom">
					<p class="tips">欢迎来到校园二手市场</p>
					<p class="right"> <span>Copyright © 2021-2022, kd-second-hand-workshop, All Rights Reserved</span>
					</p>
				</div>
			</div>
		</div>
		<div class="layui-layer-move"></div>
	</body>
</html>
